import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home', 
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },

    //----------------------mhf---------------------------
    {
      path: '/orders',
      name: 'orders',
      component: () => import('../views/追踪管理/OrderManagement.vue'),
    },
    {
      path: '/routes',
      name: 'routes',
      component: () => import('../views/追踪管理/RouteManagement.vue'),
    },
    // 合同追踪管理
    {
      path: '/contract-tracking-list',
      name: 'ContractTrackingList',
      component: () => import('../views/追踪管理/ContractTrackingList.vue'),
    },
    {
      path: '/contract-tracking-detail/:id',
      name: 'ContractTrackingDetail',
      component: () => import('../views/追踪管理/ContractTrackingDetail.vue'),
    },
    // TMS物流客服页面
    {
      path: '/customer-service',
      name: 'customer-service',
      component: () => import('../views/客服管理/CustomerService.vue'),
    },
































































    //-------------------------------------------------
    //----------------------nwj---------------------------
    //外协单位
    {
      path: '/GetExternalCooperationUnits',
      name: 'GetExternalCooperationUnits',
      component: () => import("@/views/基础信息/ExternalCooperationUnits/GetExternalCooperationUnits.vue"),
    },
    {
      path: '/AddExternalCooperationUnits',
      name: 'AddExternalCooperationUnits',
      component: () => import('@/views/基础信息/ExternalCooperationUnits/AddExternalCooperationUnits.vue'),
    },
    {
      path: '/UpdateExternalCooperationUnits',
      name: 'UpdateExternalCooperationUnits',
      component: () => import('@/views/基础信息/ExternalCooperationUnits/UpdateExternalCooperationUnits.vue'),
    },
    //货主

    {
      path: '/GetCargoOwner',
      name: 'GetCargoOwner',
      component: () => import("@/views/基础信息/CargoOwner/GetCargoOwner.vue"),
    },
    {
      path: '/AddCargoOwner',
      name: 'AddCargoOwner',
      component: () => import('@/views/基础信息/CargoOwner/AddCargoOwner.vue'),
    },
    {
      path: '/UpdateCargoOwner',
      name: 'UpdateCargoOwner',
      component: () => import('@/views/基础信息/CargoOwner/UpdateCargoOwner.vue'),
    },
    //油费
    {
      path: '/GetFuelExpenses',
      name: 'GetFuelExpenses',
      component: () => import("@/views/基础信息/FuelExpenses/GetFuelExpenses.vue"),
    },
    {
      path: '/AddFuelExpenses',
      name: 'AddFuelExpenses',
      component: () => import('@/views/基础信息/FuelExpenses/AddFuelExpenses.vue'),
    },
    {
      path: '/UpdateFuelExpenses',
      name: 'UpdateFuelExpenses',
      component: () => import('@/views/基础信息/FuelExpenses/UpdateFuelExpenses.vue'),
    },
    //车辆管理
    {
      path: '/GetVehicleManagement',
      name: 'GetVehicleManagement',
      component: () => import("@/views/基础信息/VehicleManagement/GetVehicleManagement.vue"),
    },
    {
      path: '/AddVehicleManagement',
      name: 'AddVehicleManagement',
      component: () => import('@/views/基础信息/VehicleManagement/AddVehicleManagement.vue'),
    },
    {
      path: '/UpdateVehicleManagement',
      name: 'UpdateVehicleManagement',
      component: () => import('@/views/基础信息/VehicleManagement/UpdateVehicleManagement.vue'),
    },

    //货主合同管理
    {
      path: '/GetCargoOwnerContracts',
      name: 'GetCargoOwnerContracts',
      component: () => import('@/views/合同管理/CargoOwnerContracts/GetCargoOwnerContracts.vue'),
    },
    {
      path: '/AddCargoOwnerContracts',
      name: 'AddCargoOwnerContracts',
      component: () => import('@/views/合同管理/CargoOwnerContracts/AddCargoOwnerContracts.vue'),
    },
    {
      path: '/UpdateCargoOwnerContracts',
      name: 'UpdateCargoOwnerContracts',
      component: () => import('@/views/合同管理/CargoOwnerContracts/UpdateCargoOwnerContracts.vue'),
    },
    //承运合同管理

    {
      path: '/GetCarriageContracts',
      name: 'GetCarriageContracts',
      component: () => import('@/views/合同管理/CarriageContracts/GetCarriageContracts.vue'),
    },
    {
      path: '/AddCarriageContracts',
      name: 'AddCarriageContracts',
      component: () => import('@/views/合同管理/CarriageContracts/AddCarriageContracts.vue'),
    },
    {
      path: '/UpdateCarriageContracts',
      name: 'UpdateCarriageContracts',
      component: () => import('@/views/合同管理/CarriageContracts/UpdateCarriageContracts.vue'),
    },
    //通用合同管理

    {
      path: '/GetGeneralContracts',
      name: 'GetGeneralContracts',
      component: () => import('@/views/合同管理/GeneralContracts/GetGeneralContracts.vue'),
    },
    {
      path: '/AddGeneralContracts',
      name: 'AddGeneralContracts',
      component: () => import('@/views/合同管理/GeneralContracts/AddGeneralContracts.vue'),
    },
    {
      path: '/UpdateGeneralContracts',
      name: 'UpdateGeneralContracts',
      component: () => import('@/views/合同管理/GeneralContracts/UpdateGeneralContracts.vue'),
    },
    //合同审批页面
    {
      path: '/ApprovalGeneralContracts',
      name: 'ApprovalGeneralContracts',
      component: () => import('@/views/合同管理/GeneralContracts/ApprovalGeneralContracts.vue'),
    },
    {
      path: '/ApprovalCargoOwnerContracts',
      name: 'ApprovalCargoOwnerContracts',
      component: () => import('@/views/合同管理/CargoOwnerContracts/ApprovalCargoOwnerContracts.vue'),
    },
    {
      path: '/ApprovalCarriageContracts',
      name: 'ApprovalCarriageContracts',
      component: () => import('@/views/合同管理/CarriageContracts/ApprovalCarriageContracts.vue'),
    },


    {
      path: '/SingnalR',
      name: 'SingnalR',
      component: () => import('@/views/SingnalR/SingnalR.vue'),
    },
    //智慧客服
    {
      path: '/DiFyAi',
      name: 'DiFyAi',
      component: () => import('@/views/DiFyAi.vue'),
    },

    //天气
    {
      path: '/weather',
      name: 'weather',
      component: () => import('@/views/weather.vue'),
    },

























































    //-------------------------------------------------
    //----------------------审批流管理---------------------------
    {
      path: '/ExamineEngieBasic',
      name: 'ExamineEngieBasic',
      component: () => import('../views/ExamineEngie/ExamineEngieBasic/ExamineEngieBasic.vue'),
    },
    {
      path: '/ProcessBasic',
      name: 'ProcessBasic',
      component: () => import('../views/ExamineEngie/ProcessBasic/ProcessBasic.vue'),
    },
    {
      path: '/ProcessDetailManagement',
      name: 'ProcessDetailManagement',
      component: () => import('../views/ExamineEngie/ProcessDetailManagement/ProcessDetailManagement.vue'),
    },

    //-------------------------------------------------
    //----------------------lfc---------------------------
    //登录
    {
      path: '/',
      name: 'LoginView',
      component: () => import('../views/SystemManagement/LoginView.vue'),
    },
    // 个人中心
    {
      path: '/profile',
      name: 'Profile',
      component: () => import('../views/SystemManagement/ProfileView.vue')
    },
    //主菜单
    {
      path: '/Main',
      name: 'Main',
      component: () => import('../views/SystemManagement/MainView.vue'),
      
    },
    // 兼容小写路径
    {
      path: '/main',
      redirect: '/Main'
    },
    //菜单信息表
    {
      path: '/MenusAdd',
      name: 'MenusAdd',
      component: () => import('../views/SystemManagement/MenusAdd.vue'),
    },
    //角色信息管理
    {
      path: '/Roles',
      name: 'Roles',
      component: () => import('../views/SystemManagement/RolesView.vue'),
    },
    //部门信息管理
    {
      path: '/Depts',
      name: 'Depts',
      component: () => import('../views/SystemManagement/DeptView.vue'),
    },
    //基本信息
    {
      path: '/Basicinformation',
      name: 'Basicinformation',
      component: () => import('../views/SystemManagement/Basicinformation.vue'),
    },
    //操作员管理
    {
      path: '/OperatorManagement',
      name: 'OperatorManagement',
      component: () => import('../views/SystemManagement/OperatorManagement.vue'),
    },
    //职位管理
    {
      path: '/PositionManagement',
      name: 'PositionManagement',
      component: () => import('../views/SystemManagement/PositionManagement.vue'),
    },

    //人事看板
    {   
      path: '/PersonnelBoard',
      name: 'PersonnelBoard',
      component: () => import('../views/人事管理/PersonnelBoard.vue')
    },
    //员工登记
    {
      path: '/EmployeeRegistration',
      name: 'EmployeeRegistration',
      component: () => import('../views/人事管理/EmployeeRegistration.vue')
    },
    //入职办理
    {
      path: '/OnboardingProcessing',
      name: 'OnboardingProcessing',
      component: () => import('../views/人事管理/OnboardingProcessing.vue')
    },
    //转正办理
    {
      path: '/RegularizationProcessing',
      name: 'RegularizationProcessing',
      component: () => import('../views/人事管理/RegularizationProcessing.vue')
    },
    //离职办理
    {
      path: '/ResignationProcessing',
      name: 'ResignationProcessing',
      component: () => import('../views/人事管理/ResignationProcessing.vue')
    },
    //Dify实现智能客服系统
    {
      path: '/LAI',
      name: 'LAI',
      component: () => import('../views/SystemManagement/LAI.vue')
    },






























































    //-------------------------------------------------
    //----------------------wj---------------------------
    {
      path: '/InvoiceManagement',
      name: 'InvoiceManagement',
      component: () => import('../views/结算管理/InvoiceManagement.vue'),
    },
    {
      path: '/AddInvoiceManagement',
      name: 'AddInvoiceManagement',
      component: () => import('../views/结算管理/AddInvoiceManagement.vue'),
    },
    {
      path: '/UpdateInvoiceManagement/:id',
      name: 'UpdateInvoiceManagement',
      component: () => import('../views/结算管理/UpdateInvoiceManagement.vue'),
    },

    {
      path: '/boundInvoice',
      name: 'boundInvoice',
      component: () => import('../views/结算管理/boundInvoice.vue'),
    },
    {
      path: '/AddboundInvoice',
      name: 'AddboundInvoice',
      component: () => import('../views/结算管理/AddboundInvoice.vue'),
    },
    {
      path: '/UpdateboundInvoice/:id',
      name: 'UpdateboundInvoice',
      component: () => import('../views/结算管理/UpdateboundInvoice.vue'),
    },
    {
      path: '/WarehouseReceiving',
      name: 'WarehouseReceiving',
      component: () => import('../views/物资管理/WarehouseReceiving.vue'),
    },
    {
      path: '/AddWarehouseReceiving',
      name: 'AddWarehouseReceiving',
      component: () => import('../views/物资管理/AddWarehouseReceiving.vue'),
    },
    {
      path: '/UpdateWarehouseReceiving',
      name: 'UpdateWarehouseReceiving',
      component: () => import('../views/物资管理/UpdateWarehouseReceiving.vue'),
    },
    {
      path: '/AddPaymentManagemen',
      name: 'AddPaymentManagemen',
      component: () => import('../views/结算管理/AddPaymentManagemen.vue'),
    },

    {
      path: '/UpdatePaymentManagemen',
      name: 'UpdatePaymentManagemen',
      component: () => import('../views/结算管理/UpdatePaymentManagemen.vue'),
    },
    {
      path: '/PayMent',
      name: 'PayMent',
      component: () => import('../views/结算管理/PayMent.vue'),
    },
    {
      path: '/Fee',
      name: 'Fee',
      component: () => import('../views/结算管理/Fee.vue'),
    },
    {
      path: '/AddFee',
      name: 'AddFee',
      component: () => import('../views/结算管理/AddFee.vue'),
    },
    {
      path: '/UpdateFee/:id',
      name: 'UpdateFee',
      component: () => import('../views/结算管理/UpdateFee.vue'),
      props: true
    },
    {
      path: '/AddReceivable',
      name: 'AddReceivable',
      component: () => import('../views/结算管理/AddReceivable.vue'),
    },
    {
      path: '/Receivable',
      name: 'Receivable',
      component: () => import('../views/结算管理/Receivable.vue'),
    },
    {
      path: '/UpdateReceivable/:id',
      name: 'UpdateReceivable',
      component: () => import('../views/结算管理/UpdateReceivable.vue'),
    },
            {
      path: '/SupplyPurchase',
      name: 'SupplyPurchase',
      component: () => import('../views/物资管理/SupplyPurchase.vue'),
    },
     {
      path: '/SupplyPurchaseMange',
      name: 'SupplyPurchaseMange',
      component: () => import('../views/物资管理/SupplyPurchaseMange.vue'),
    },
    {
      path: '/AddSupplyPurchaseManage',
      name: 'AddSupplyPurchaseManage',
      component: () => import('../views/物资管理/AddSupplyPurchaseManage.vue'),
    },
    {
      path: '/MyAI',
      name: 'MyAI',
      component: () => import('../views/结算管理/MyAI.vue'),
    },
     {
      path: '/MaterialWithdrawal',
      name: 'MaterialWithdrawal',
      component: () => import('../views/物资管理/MaterialWithdrawal.vue'),
    },
     {
      path: '/AddMaterialWithdrawal',
      name: 'AddMaterialWithdrawal',
      component: () => import('../views/物资管理/AddMaterialWithdrawal.vue'),
    },
      {
      path: '/MCP',
      name: 'MCP',
      component: () => import('../views/物资管理/MCP.vue'),
    },
  
































































    //-------------------------------------------------
    //----------------------hzb---------------------------


    // ----------------------审批管理---------------------------
    {
      path: '/ExamineEngieBasic',
      name: 'ExamineEngieBasic',
      component: () => import('@/views/ExamineEngie/ExamineEngieBasic/ExamineEngieBasic.vue'),
    },
    {
      path: '/ProcessBasic',
      name: 'ProcessBasic',
      component: () => import('@/views/ExamineEngie/ProcessBasic/ProcessBasic.vue'),
    },
    {
      path: '/PaymentApprovalList',
      name: 'PaymentApprovalList',
      component: () => import('@/views/ExamineEngie/PaymentApprovalList/PaymentApprovalList.vue'),
    },

    // ----------------------车辆服务管理---------------------------
    {
      path: '/CarServicesReport',
      name: 'CarServicesReport',
      component: () => import('../views/CarServices/CarServicesFR.vue'),
    },
    {
      path: '/CarServicesFeeRecordList',
      name: '/CarServicesFeeRecordList',
      component: () => import('../views/CarServices/FeeRecordList.vue'),
    },
    {
      path: '/CarServicesAccidentRecordList',
      name: '/CarServicesAccidentRecordList',
      component: () => import('../views/CarServices/AccidentRecordList.vue'),
    },
    {
      path: '/CarServicesBreakRulesList',
      name: '/CarServicesBreakRulesList',
      component: () => import('../views/CarServices/BreakRulesList.vue'),
    },
    {
      path: '/CarServicesMaintainRecordList',
      name: '/CarServicesMaintainRecordList',
      component: () => import('../views/CarServices/MaintainRecordList.vue'),
    },
    {
      path: '/CarServicesRepairRecordList',
      name: '/CarServicesRepairRecordList',
      component: () => import('../views/CarServices/RepairRecordList.vue'),
    },
    {
      path: '/CarServicesTireRecordList',
      name: '/CarServicesTireRecordList',
      component: () => import('../views/CarServices/TireRecordList.vue'),
    },




































































    //-------------------------------------------------
  ],
})

export default router
